package com.cskaoyan.service;

import com.cskaoyan.mapper.UserIndexMapper;
import com.cskaoyan.service.wx.UserIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * \* Description:
 * \
 */
@Service
public class UserIndexServiceImpl implements UserIndexService {

    @Autowired
    UserIndexMapper userIndexMapper;

    @Override
    public int unrecv(int id) {
        int unrecvId = userIndexMapper.unrecv(id);
        return unrecvId;
    }

    @Override
    public int uncomment(int id) {
        int uncommentId = userIndexMapper.uncomment(id);
        return uncommentId;
    }

    @Override
    public int unpaid(int id) {
        int unpaId = userIndexMapper.unpaid(id);
        return unpaId;
    }

    @Override
    public int unship(int id) {
        int unshipId = userIndexMapper.unship(id);
        return unshipId;
    }

    @Override
    public int getIdByprimaryPrincipal(String primaryPrincipal) {
        int id = userIndexMapper.getIdByprimaryPrincipal(primaryPrincipal);
        return id;
    }
}
